import Vue from "vue";
import Router from "vue-router";

import Login from "../pages/Login/Login.vue";
import Table from "../pages/teacher/table.vue";
import Register from "../pages/Register/Register.vue";
import superLogin from "../pages/Login/superLogin.vue";
import Grades from "../pages/Home/Grades.vue";
import Modify from "../pages/Home/Modify.vue";
import newtable from "../pages/teacher/newtable.vue";
import catalog from "../pages/teacher/sectionCatalog.vue";
import change from "../pages/teacher/changeTable.vue";
import Home from "../pages/Home/Home.vue"

// demo
import asd from "../pages/asd.vue"
import asd2 from "../pages/asd2.vue"
import print from "../pages/print.vue"
import printexel from "../pages/printexel"
import student from "../pages/student/student.vue";


Vue.use(Router);

export default new Router({
  routes: [
    {
      path: "/student",
      component: student
    },
    {
      path: "/change",
      component: change
    },
    {
      path: "/catalog",
      component: catalog
    },
    {
      path: "/newtable",
      component: newtable
    },
    {
      path: "/grades",
      component: Grades
    },
    {
      path: "/modify",
      component: Modify
    },
    {
      path: "/table",
      component: Table
    },
    {
      path: "/login",
      component: Login
    },
    {
      path: "/superLogin",
      component: superLogin
    },
    {
      path: "/register",
      component: Register
    },
    {
      path: "*",
      redirect: "/login"
    },
    {
      path: "/home",
      component: Home
    },

    // demo
    {
      path: "/asd",
      component: asd
    },
    {
      path: "/asd2",
      component: asd2
    },
    {
      path: "/print",
      component: print
    },
    {
      path: "/printexel",
      component: printexel
    }
  ],
  mode: "history",
  linkActiveClass: "active"
});
